package org.moyrax.nereyda.services.core
{
	public class Request
	{
		public var params  : Parameter = null;
		public var result  : Object = null;
		
		private var _service      : String = null;
		private var _endpointName : String = null;
		
		public function Request(serviceName:String = null, params:Parameter = null) 
		{
			this.params  = params;
			this.service = serviceName;
		}
		
		public function get service():String
		{
			return( this._service );
		}
		
		public function set service(value:String):void
		{
			this._service = value;
		}
		
		public function get endpointName():String
		{
			return( this._endpointName );
		}
		
		public function set endpointName(value:String):void
		{
			if ( this.params ) {
				this.params.addParam("endpointName", value);
			}
			this._endpointName = value;
		}
	}
}